package com.sanyang.logistics.liuxu.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.liuxu.mapper.Hwmapper;
import com.sanyang.logistics.pojo.Product;
@Repository("hwdao")
public class Hwdaoimpl implements Hwdao{
	@Autowired
	private Hwmapper mapper;
     //查询
	@Override
	public List<Product> hwqueryAll(Product product) {
		System.out.println(product.getPname()+"%%%%%%%%%%%%%%%"+product.getCode());
		return mapper.hwqueryAll(product);
	}
	//添加
	@Override
	public void hwinsert(Product product) {
		mapper.hwinsert(product);
		
	}
	//删除
	@Override
	public void hwdel(Integer pid) {
		mapper.hwdel(pid);	
	}
	//修改拿值
	@Override
	public Product hwxui(Integer pid) {
		return mapper.hwxui(pid);
	}
	//修改
	@Override
	public void hwupdate(Product product) {
	mapper.hwupdate(product);
	}

}
